Cool, that one was on my list for a long time. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br />Just as a note. REQUEST_URI doesn't work on all php configurations. It shouldn't work if you use FASTCGI for example.<br />But you can use something similar, for example:<br />$return = "http://" .$_ENV['SERVER_NAME'] . $_ENV['PATH_INFO'];
_________________________
Running a community? ->
Keep informed and take it to the next level